package main.com.oaer.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import main.com.oaer.dao.impl.IndexDaoImpl;
import main.com.oaer.model.Purview;
import main.com.oaer.service.IndexService;

@Service
public class IndexServiceImpl implements IndexService {

	@Autowired
	IndexDaoImpl indexDaoImpl;
	
	@Override
	public List<Purview> findFirstPurviewByUserId(Long id){
		return indexDaoImpl.findFirstPurviewByUserId(id);
	}

	@Override
	public List<Purview> findUserPurviewByParentId(Long id, Long parentId){
		return indexDaoImpl.findUserPurviewByParentId(id, parentId);
	}
}
